module.exports = {
  value: {
    type: [String, Number, Boolean],
    default: '',
    name: '输入值',
    filedType: 'value'
  },

  fullscreen: {
    type: Boolean,
    default: false,
    name: '是否全屏',
    filedType: 'switch'
  },

  title: {
    type: String,
    default: '弹窗标题',
    name: '弹窗标题',
    nameTip: 'list传入时这里不起作用',
    filedType: 'string'
  },
  btnTitleCancel: {
    type: String,
    default: '',
    name: '取消按钮标题',
    filedType: 'string'
  },
  btnTitleSubmit: {
    type: String,
    default: '',
    name: '提交按钮标题',
    filedType: 'string'
  },

  width: {
    type: String,
    default: '50%',
    name: '宽度',
    filedType: 'string'
  },
  top: {
    type: String,
    default: '15vh',
    name: 'margin-top 值',
    filedType: 'string'
  },
  customclass: {
    type: String,
    default: '',
    name: '自定义类名',
    filedType: 'string'
  },

  modal: {
    type: Boolean,
    default: true,
    name: '是否需要遮罩层',
    filedType: 'switch'
  },
  modalbody: {
    type: Boolean,
    default: true,
    name: '遮罩层插入至 body 元素上',
    filedType: 'switch'
  },
  appendbody: {
    type: Boolean,
    default: false,
    name: 'Dialog插入至 body 元素上',
    filedType: 'switch'
  },
  lockscroll: {
    type: Boolean,
    default: true,
    name: 'Dialog出现时滚动锁定',
    filedType: 'switch'
  },
  closemodal: {
    type: Boolean,
    default: true,
    name: '点击 modal 关闭 Dialog',
    filedType: 'switch'
  },
  closeescape: {
    type: Boolean,
    default: true,
    name: '按下 ESC 关闭 Dialog',
    filedType: 'switch'
  },
  showclose: {
    type: Boolean,
    default: true,
    name: '显示关闭按钮',
    filedType: 'switch'
  },
  center: {
    type: Boolean,
    default: false,
    name: '头部和底部居中布局',
    filedType: 'switch'
  },
  destroyclose: {
    type: Boolean,
    default: false,
    name: '关闭时销毁 Dialog',
    filedType: 'switch'
  },
  beforeclose: {
    type: Boolean,
    default: true,
    name: '开启beforeclose函数',
    filedType: 'switch'
  },

  list: {
    type: Array,
    default () {
      return [{
        title: 'Dialog 的标题',
        footer: '<a style="margin-right:30px;border:1px solid;padding:5px 15px;">取 消</a><a type="primary" @click="val = false">确 定</a>'
      }]
    },
    name: '选项列表',
    filedType: 'api'
  },
  setCusStyle: {
    type: Function,
    default: '',
    name: '自定义样式',
    nameTip: '函数的返回值是样式字串',
    filedType: 'function'
  },
  onCancel: {
    type: Function,
    default: '',
    name: '取消函数',
    nameTip: '函数的第一个参数是this，窗口关闭属性val',
    filedType: 'function'
  },
  onSubmit: {
    type: Function,
    default: '',
    name: '确认函数',
    nameTip: '函数的第一个参数即this，窗口关闭属性val',
    filedType: 'function'
  },
  onClose: {
    type: Function,
    default: '',
    name: 'before-close函数',
    nameTip: '函数的第一个参数即this，窗口关闭属性val',
    filedType: 'function'
  },
}
